<include file="Public:header" />
<style>.header{display:none;}
.w790{margin-top:0px;}
.UserList a{padding:5px; display:block; float:left; border:1px solid #CCC;}
</style>
<div class="container main"> <include file="Public:left" />
    <div class="w790">
        <div class="h">
            <div id="link" style="float:left;width: 600px;"></div>
            <form action="{:U('belong')}" method="get" class="fr form-inline" id="belongsform">
                <select class="form-control" name="level" id="level" onchange="$('#belongsform').submit();">
                    <option value="all">请选择级别</option>
                    <volist name="getLevelNameList" id="vo">
                        <option value="{$key}">{$vo}</option>
                    </volist>
                </select>
                <input type="hidden" name="member_id" value="{$Think.get.member_id}" />
                <input type="hidden" name="top_id" value="{$Think.get.member_id}" />
                <input type="text" name="keywords" placeholder="输入搜索关键词" class="form-control" value="{$keywords}" />
                <button type="submit" class="btn btn-default">搜索</button>
            </form>
            <div style="clear:both"></div>
        </div>
        <table class="table table-bordered" width="100%" border="0" cellspacing="0" cellpadding="0">
            <thead>
            <tr>
                <td align="center">id</td>
                <td align="center">昵称</td>
                <td align="center">头像</td>
                <td align="center">级别</td>
                <td align="center">操作</td>
            </tr>
            </thead>
            <tbody id="belongs">
            </tbody>
        </table>
        <div id="belongspages" class="pages">{$pages}</div>
    </div>
    <div class="clear"></div>
</div>
<script src="__PUBLIC__/Js/jquery-ajaxlist-single.js"></script>
<script>
    $('#belongs').ajaxlist({nodata:'<tr><td colspan="5" style="text-align: center">暂无数据</td></tr>'});
    function showBelong(id){
        $('#belongsform').find('[name="member_id"]').val(id);
        $('#belongsform').submit();
    }
</script>
</body>
</html>